package org.wsiz.vro.repository;

import org.springframework.stereotype.Service;
import org.wsiz.vro.domain.Address;
import org.wsiz.vro.util.ValueGenerator;

/**
 * Helper class to create transient entities instance for testing purposes.
 * Simple properties are pre-filled with random values.
 */
@Service
public class AddressGenerator {

    /**
     * Returns a new Address instance filled with random values.
     */
    public Address getAddress() {
        Address address = new Address();

        // simple attributes follows
        address.setStreetName("a");
        address.setCity("a");
        return address;
    }

}